package com.neuedu.his.common.core;

import com.neuedu.his.common.Page;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public class UnCRUDBaseController extends BaseController<Object>{
    @Override
    public BaseService getService() {
        return null;
    }

    @Override
    public Page list(HttpServletRequest req, HttpServletResponse resp) throws Exception {
        throw new Exception("非法请求");
    }

    @Override
    public Map save(HttpServletRequest req, HttpServletResponse resp) throws Exception {
        throw new Exception("非法请求");
    }

    @Override
    public <E> E queryById(HttpServletRequest req, HttpServletResponse resp) throws Exception {
        throw new Exception("非法请求");
    }

    @Override
    public Map update(HttpServletRequest req, HttpServletResponse resp) throws Exception {
        throw new Exception("非法请求");
    }

    @Override
    public Map deleteById(HttpServletRequest req, HttpServletResponse resp) throws Exception {
        throw new Exception("非法请求");
    }

}
